module.exports = {
    chainWebpack: config => {
        config
            .module
            .rule('vue')
            .use('vue-loader')
            .loader('vue-loader')
            .tap(options => {
                options.transformAssetUrls = {
                    audio: 'src',
                };
                return options;
            });
    },
    publicPath: process.env.NODE_ENV === 'production'
        ? '/vueaudiovisible-preview/'
        : '/'
};
